/**
 * Copyright [2019] [LiBo/Alex of copyright liboware@gmail.com ]
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.hermes.ssoLogin.saml.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @project-name:hermes
 * @package-name:com.hyts.hermes.ssoLogin.saml.config
 * @author:LiBo/Alex
 * @create-date:2023-04-10 16:02
 * @copyright:libo-alex4java
 * @email:liboware@gmail.com
 * @description:
 */

@Data
@Configuration
public class OktaSamlParameter {



    /***********************************sp服务协议********************************************/

    /**
     * sp服务提供商的实例id-entityid
     */
    @Value("${okta.sp.entityId:}")
    private String spEntityid;

    /**
     * assert声明服务消费组服务接口-assertionConsumerServiceUrl
     */
    @Value("${okta.sp.assertionConsumerServiceUrl:}")
    private String spAssertionConsumerServiceUrl;

    /**
     * 单点登出的业务服务实现URL-spSingleLogoutServiceUrl
     */
    @Value("${okta.sp.singleLogoutServiceUrl:}")
    private String spSingleLogoutServiceUrl;

    /**
     * sp端的x509证书值
     */
    @Value("${okta.sp.x509cert:}")
    private String spX509cert;


    /***********************************idp服务协议********************************************/

    /**
     * idp服务提供商的实例id-entityid
     */
    @Value("${okta.idp.entityId:}")
    private String idpEntityid;

    /**
     * assert声明服务消费组服务接口-single_sign_on_service
     */
    @Value("${okta.idp.singleSignOnServiceUrl:}")
    private String idpSingleSignOnServiceUrl;

    /**
     * 单点登出的业务服务实现URL-spSingleLogoutServiceUrl
     */
    @Value("${okta.idp.singleLogoutServiceUrl:}")
    private String idpSingleLogoutServiceUrl;

    /**
     * sp端的x509证书值
     */
    @Value("${okta.idp.x509cert:}")
    private String idpX509cert;

}
